cmake_minimum_required(VERSION 3.5.0)

set(CMAKE_CXX_STANDARD 17)

file(GLOB local_src *.cpp)
file(GLOB local_headers *.h)

add_library(fxcc_test_e2d_mono_impl ${local_src} ${local_headers})
target_link_libraries(fxcc_test_e2d_mono_impl PUBLIC fxcc_mono fxcc_test_e2d_core_impl)
target_compile_definitions(fxcc_test_e2d_mono_impl PRIVATE FXCC_EXPORTS FXCC_USE_SHARED_LIB)


if(E2D_BUILD_RENDER)
    target_link_libraries(fxcc_test_e2d_mono_impl PUBLIC fxcc_test_e2d_mono_render)
    target_compile_definitions(fxcc_test_e2d_mono_impl PUBLIC E2D_BUILD_RENDER)
endif()

if(E2D_BUILD_TRANS)
    target_link_libraries(fxcc_test_e2d_mono_impl PUBLIC fxcc_test_e2d_mono_trans)
    target_compile_definitions(fxcc_test_e2d_mono_impl PUBLIC E2D_BUILD_TRANS)
endif()

if(E2D_BUILD_AUDIO)
    target_link_libraries(fxcc_test_e2d_mono_impl PUBLIC fxcc_test_e2d_mono_audio)
    target_compile_definitions(fxcc_test_e2d_mono_impl PUBLIC E2D_BUILD_AUDIO)
endif()

if(E2D_BUILD_FUI)
    target_link_libraries(fxcc_test_e2d_mono_impl PUBLIC fxcc_test_e2d_mono_fui)
    target_compile_definitions(fxcc_test_e2d_mono_impl PUBLIC E2D_BUILD_FUI)
endif()

if(E2D_BUILD_PHYSICS)
    target_link_libraries(fxcc_test_e2d_mono_impl PUBLIC fxcc_test_e2d_mono_physics)
    target_compile_definitions(fxcc_test_e2d_mono_impl PUBLIC E2D_BUILD_PHYSICS)
endif()
